﻿package Engine.RMI
{

    public class RMIProxyObject extends RMIObject
    {
        private var _session:Session;
        private var _timeOut:int;

        public function RMIProxyObject()
        {
            this._timeOut = RMIConfig.DefultTimeOut;
            return;
        }// end function

        public function get session() : Session
        {
            return this._session;
        }// end function

        public function bindingSession(param1:Session) : void
        {
            this._session = param1;
            return;
        }// end function

        public function set timeOut(param1:int) : void
        {
            this._timeOut = param1;
            return;
        }// end function

        public function get timeOut() : int
        {
            return this._timeOut;
        }// end function

        public function makeContext(param1:Session) : Context
        {
            var _loc_2:* = new Context();
            _loc_2._session = param1;
            _loc_2._connection = param1.connection;
            _loc_2._timeOut = this._timeOut;
            return _loc_2;
        }// end function

        public function makeCall(param1:String) : SRMICall
        {
            var _loc_2:* = new SRMICall();
            _loc_2.identity = identity;
            _loc_2.operation = param1;
            return _loc_2;
        }// end function

    }
}
